package com.ncsc.lmis.model;
// Generated Feb 25, 2014 11:44:39 PM by Hibernate Tools 3.4.0.CR1


import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * SysVehicleRate generated by hbm2java
 */
@Entity
@Table(name="sys_vehicle_rate"
    ,catalog="lmis"
)
public class SysVehicleRate  implements java.io.Serializable {


     private Integer vehicleRateNo;
     private Short vehicleTypeNo;
     private Short vehicleSubtypeNo;
     private Short vehicleBrandNo;
     private Short vehicleColorNo;
     private String vehicleModelCode;
     private String vehicleNumber;
     private Short vehicleGearTypeNo;
     private String salePrice;
     private String detail;
     private String over;
     private BigDecimal loanAllowRatePerc;
     private Set<SysVehicleRateDetail> sysVehicleRateDetails = new HashSet<SysVehicleRateDetail>(0);
     private Set<SysVehicleRateTmpDetail> sysVehicleRateTmpDetails = new HashSet<SysVehicleRateTmpDetail>(0);

    public SysVehicleRate() {
    }

    public SysVehicleRate(Short vehicleTypeNo, Short vehicleSubtypeNo, Short vehicleBrandNo, Short vehicleColorNo, String vehicleModelCode, String vehicleNumber, Short vehicleGearTypeNo, String salePrice, String detail, String over, BigDecimal loanAllowRatePerc, Set<SysVehicleRateDetail> sysVehicleRateDetails, Set<SysVehicleRateTmpDetail> sysVehicleRateTmpDetails) {
       this.vehicleTypeNo = vehicleTypeNo;
       this.vehicleSubtypeNo = vehicleSubtypeNo;
       this.vehicleBrandNo = vehicleBrandNo;
       this.vehicleColorNo = vehicleColorNo;
       this.vehicleModelCode = vehicleModelCode;
       this.vehicleNumber = vehicleNumber;
       this.vehicleGearTypeNo = vehicleGearTypeNo;
       this.salePrice = salePrice;
       this.detail = detail;
       this.over = over;
       this.loanAllowRatePerc = loanAllowRatePerc;
       this.sysVehicleRateDetails = sysVehicleRateDetails;
       this.sysVehicleRateTmpDetails = sysVehicleRateTmpDetails;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)

    
    @Column(name="VEHICLE_RATE_NO", unique=true, nullable=false)
    public Integer getVehicleRateNo() {
        return this.vehicleRateNo;
    }
    
    public void setVehicleRateNo(Integer vehicleRateNo) {
        this.vehicleRateNo = vehicleRateNo;
    }

    
    @Column(name="VEHICLE_TYPE_NO")
    public Short getVehicleTypeNo() {
        return this.vehicleTypeNo;
    }
    
    public void setVehicleTypeNo(Short vehicleTypeNo) {
        this.vehicleTypeNo = vehicleTypeNo;
    }

    
    @Column(name="VEHICLE_SUBTYPE_NO")
    public Short getVehicleSubtypeNo() {
        return this.vehicleSubtypeNo;
    }
    
    public void setVehicleSubtypeNo(Short vehicleSubtypeNo) {
        this.vehicleSubtypeNo = vehicleSubtypeNo;
    }

    
    @Column(name="VEHICLE_BRAND_NO")
    public Short getVehicleBrandNo() {
        return this.vehicleBrandNo;
    }
    
    public void setVehicleBrandNo(Short vehicleBrandNo) {
        this.vehicleBrandNo = vehicleBrandNo;
    }

    
    @Column(name="VEHICLE_COLOR_NO")
    public Short getVehicleColorNo() {
        return this.vehicleColorNo;
    }
    
    public void setVehicleColorNo(Short vehicleColorNo) {
        this.vehicleColorNo = vehicleColorNo;
    }

    
    @Column(name="VEHICLE_MODEL_CODE", length=100)
    public String getVehicleModelCode() {
        return this.vehicleModelCode;
    }
    
    public void setVehicleModelCode(String vehicleModelCode) {
        this.vehicleModelCode = vehicleModelCode;
    }

    
    @Column(name="VEHICLE_NUMBER", length=50)
    public String getVehicleNumber() {
        return this.vehicleNumber;
    }
    
    public void setVehicleNumber(String vehicleNumber) {
        this.vehicleNumber = vehicleNumber;
    }

    
    @Column(name="VEHICLE_GEAR_TYPE_NO")
    public Short getVehicleGearTypeNo() {
        return this.vehicleGearTypeNo;
    }
    
    public void setVehicleGearTypeNo(Short vehicleGearTypeNo) {
        this.vehicleGearTypeNo = vehicleGearTypeNo;
    }

    
    @Column(name="SALE_PRICE", length=50)
    public String getSalePrice() {
        return this.salePrice;
    }
    
    public void setSalePrice(String salePrice) {
        this.salePrice = salePrice;
    }

    
    @Column(name="DETAIL")
    public String getDetail() {
        return this.detail;
    }
    
    public void setDetail(String detail) {
        this.detail = detail;
    }

    
    @Column(name="OVER")
    public String getOver() {
        return this.over;
    }
    
    public void setOver(String over) {
        this.over = over;
    }

    
    @Column(name="LOAN_ALLOW_RATE_PERC", precision=10)
    public BigDecimal getLoanAllowRatePerc() {
        return this.loanAllowRatePerc;
    }
    
    public void setLoanAllowRatePerc(BigDecimal loanAllowRatePerc) {
        this.loanAllowRatePerc = loanAllowRatePerc;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="sysVehicleRate")
    public Set<SysVehicleRateDetail> getSysVehicleRateDetails() {
        return this.sysVehicleRateDetails;
    }
    
    public void setSysVehicleRateDetails(Set<SysVehicleRateDetail> sysVehicleRateDetails) {
        this.sysVehicleRateDetails = sysVehicleRateDetails;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="sysVehicleRate")
    public Set<SysVehicleRateTmpDetail> getSysVehicleRateTmpDetails() {
        return this.sysVehicleRateTmpDetails;
    }
    
    public void setSysVehicleRateTmpDetails(Set<SysVehicleRateTmpDetail> sysVehicleRateTmpDetails) {
        this.sysVehicleRateTmpDetails = sysVehicleRateTmpDetails;
    }




}


